package spring.framework.util;


/**
 * @author fun.pengzh
 * @class spring.framework.utils.ClassUtils
 * @desc class工具
 * @since 2021-09-30
 */
public class ClassUtils {

    /**
     * 获取ClassLoader
     *
     * @return
     */
    public static ClassLoader getDefaultClassLoader() {
        ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();
        if (contextClassLoader == null) {
            contextClassLoader = spring.framework.util.ClassUtils.class.getClassLoader();
        }
        return contextClassLoader;
    }

}
